from typing import Optional
import pandas as pd
import sys
from datetime import datetime
sys.path.append('E:\\gitee\\mp_alwaysup_fastapi')
from process import tushareFunc as tushare
from process import baseFunction as bf
import easyquotation


quotationQq = easyquotation.use('sina')
fixed_codes = ['sh000001']
# stock_data = quotationQq.stocks(fixed_codes, prefix=True)
# easyquotation.update_stock_codes()
# df = easyquotation.get_stock_codes()

stock_data = quotationQq.real('sh000001') # 支持直接指定前缀，如 'sh000001'

quotation = easyquotation.use("timekline")
data = quotation.real(['sz000001'], prefix=True)

print(data)